<template>
    <div id="app" class="scroll" v-bind="{'minWidth':this.$route.name!='invitelogin'}">
        <navbar v-if="nocommon == 0"></navbar>
        <router-view class="view"></router-view>
        <z-footer v-if="nocommon == 0"></z-footer>
    </div>
</template>

<script>
    export default {
        name: 'app',
        data() {
            return{
                nocommon:null,
                loginIs:null,
                noinvite:false
            }
        },
        components: {},
        watch: {
            '$route' (to,from) {
                const that = this;
                that.hasCommon();
                that.loginWay();
                that.hasInvite();
            }
        },
        mounted: function () {
            this.hasCommon()
            this.loginWay();
            this.hasInvite()
            appService.onBridgeReady()
        },
        methods: {
        }
    }
</script>

<style lang="less">
    @import url('assets/css/base.less');
    @import url('assets/css/icon/iconfont.css');
</style>
